public class Java22 {
    public static void main(String[] args) {
        String s1 = "starter";
        String s2 = "st";
        System.out.println("判断s1字符串是否以st开头：" + s1.startsWith(s2));
        System.out.println("判断s1字符串是否以er结尾：" + s1.endsWith("er"));
        System.out.println("判断s1字符串是包含有“ar：" + s1.contains("ar"));
        System.out.println("判断s1字符串是否为空：" + s1.isEmpty());
        System.out.println("判断s1字符串是否相等：" + s1.equals(s2));
        System.out.println(s1.substring(2));
        System.out.println(s1.substring(2,5));
        String ids="1,2,3,4,5,6,7,8,9,10";
        String[] arry=ids.split(",");
        System.out.println("分割后的数组长度："+arry.length);
        for (String s:args){
            System.out.println(s);
        }
    }

}
